package one.chchy.dp_demo.enums;

import lombok.Getter;

public enum ObjectDetect {
    yolov1("yolov1", 0),
    yolov2("yolov2", 1),
    yolov3("yolov3", 2),
    yolov4("yolov4", 3),
    yolov5("yolov5", 4),
    yolov6("yolov6", 5),
    yolov7("yolov7", 6),
    yolov8("yolov8", 7),
    yolov9("yolov9", 8),
    yolov10("yolov10", 9),
    ;

    @Getter
    private String name;
    @Getter
    private Integer id;
    ObjectDetect(String name, Integer id) {
        this.name = name;
        this.id = id;
    }

    public static ObjectDetect get(Long id) {
        return ObjectDetect.values()[id.intValue()];
    }
}
